package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.query.TravelQueryObject;
import cn.wolfcode.luowowo.common.util.AjaxResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {
    void deleteByPrimaryKey(Long id);

    void insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    void updateByPrimaryKey(Travel record);

    PageInfo<Travel> queryForList(TravelQueryObject qo);

    AjaxResult saveOrUpdate(Travel entity);

    List<Travel> listViewnumTop3(Long destId);
    //查询游记内容
    TravelContent selectTravelContent(Long travelId);

}
